from flask import Flask, render_template, request

app = Flask(__name__)

@app.route('/')
def form():
    return render_template('form.html')

@app.route('/submit', methods=['POST'])
def submit():
    name = request.form.get('username')
    email = request.form.get('useremail')
    return f'Name: {name}, Email: {email}'

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')